<!doctype html>
<!--须传递参数prescription_id-->
<html>
<head>    
    <title></title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <link rel="stylesheet" href="../css/common/weui.css"/>
    <link rel="stylesheet" href="../css/common/weuix.css"/>
    <link rel="stylesheet" href="../css/common/common.css"/>
    
    <script src="../js/common/utils/zepto.min.js"></script>
    <script src="../js/common/utils/zepto.weui.js"></script>
    <script src="../js/common/common.js"></script>
    <script src="../js/common/utils/template-web.js"></script>
	<script src="../js/shop_oneself.js"></script>
</head>
<body ontouchstart style="background-color:#BCC7D8">
    <!-- 页面头部 -->
    <div class="oneself-header-container header-container">
    	<div class="weui-flex">
    	    <div class="weui-flex__item">
    	        <div class="placeholder">
    	            <span class="icon icon-109" style="color:#FFF; margin:0px;" onclick="goOrderDetails()"></span>
    	        </div>
    	    </div>
    	    <div class="weui-flex__item"><div class="placeholder" style="text-align:right;color:#FFF;"></div></div>
    	</div> 
    </div>
	
	<div class="oneself-body-container body-container">
		<div id="shop_oneself">
			
		</div>
	</div>
	<p></p>
	<p></p>
	<script id="shopOneself" type="text/html">
	   {{each list as value}}
			<div class="weui-cells" style="margin-top:8px;">
				<div class="weui-cell">
					<div class="weui-cell__bd">
						<p style="font-size: 15px;" id="p_status">{{value.indent_state}}</p>
					</div>
				</div>
			</div>
			
			<div class="weui-cells" style="margin-top:8px;">
				<div class="weui-cell">
					<div class="weui-cell__hd" style="position: relative;margin-right: 10px;">
						<img src="http://zz.nxk520.com/netcflz_wx/img/head_portrait/p01.png" alt="患者头像" style="width:50px;display: block" id="img_user_head"/>
					</div>
					<div class="weui-cell__bd">
						<p><span id="spn_user_name">{{value.patient_name === "" ? "李景" : value.patient_name}} ({{value.idno === "" ? "18888888" : value.idno}})</span></p>
						<p style="font-size: 13px;color: #888888;"><span id="spn_user_mark"></span></p>
					</div>
				</div>
			</div> 
			<div id="div_dd_dtl">
				<div class="weui-cells" style="margin-top:8px;">
					<div class="weui-cell">
						<div class="weui-cell__hd" style="position: relative;margin-right: 10px;">
							<img src="../images/yaopin.jpg" alt="药品" style="width: 80px;display: block"/>
						</div>
						<div class="weui-cell__bd">
							<p style="font-size: 15px;">{{value.drugname}}</p>
							<p style="font-size: 12px;color: #888888;"><span>数量：{{value.charge_amount}}{{value.charge_unit}}</span><span style=" margin-left:10px:">规格：{{value.drug_specifications}}</span></p>
							<p style="font-size: 13px;color: #CC0000;">￥{{value.drug_price}}</p>
					
						</div>
					</div>
				</div>
			</div>
			
			<div class="weui-cells" style="margin-top:8px;">
				<div class="weui-cell">
					<div class="weui-cell__bd" id="div_dd_ls_info">
						<p style="font-size: 12px;">订单编号：{{value.indent_no}}<span style="color:Blue;">[复制]</span></p>
						<p style="font-size: 12px;">下单时间：{{value.create_time}}</p>
						<p style="font-size: 12px;"><br /></p>
						<!--<p style="font-size: 12px;">支付状态：未支付</p>-->
						<!-- <p style="font-size: 12px;">支付时间：{{value.pay_time}}</p> -->
						<p style="font-size: 12px;">支付方式：{{value.pay_way === undefined ? "微信支付" : value.pay_way}}</p>
						<p style="font-size: 12px;"><br /></p>
						<p style="font-size: 12px;">取药方式：{{value.take_type == "1" ? "上门自取" : "快递派送"}}</p>
					</div>
				</div>
			</div>
			<div class="weui-cells" style="margin-top:8px;">
				<div class="weui-cell">
					<div class="weui-cell__bd">
						<p style="font-size: 13px;">药品金额</p>
					</div>
					<div class="weui-cell__ft" style="font-size: 13px;" id="div_sum_price">￥{{value.charge_total}}</div>
				</div>
			</div>
			{{if (value.indent_state === "待发货" || value.indent_state === "待配药" )}}
				<div class="weui-cells" style="margin-top:8px;">
					<div class="weui-cell">
						<div class="weui-cell__bd">
							<p style="font-size: 13px;"></p>
						</div>
						<div class="weui-cell__ft" style="font-size: 13px;"><a href="javascript:;" class="weui-btn weui-btn_mini  bg-orange" style="width:100px; color:#fff;" onclick="actddpy();">完成取药</a></div>
					</div>
				</div>
			{{/if}}
		{{/each}}
	</script>
</body>
<script type="text/javascript">
   
</script>
</html>
